package com.dhl.state.sttatepackage;

import com.dhl.state.RaffleActivity;

/**
 * 不可抽奖
 * @author Administrator
 *
 */
public class NoRaffleState extends State {

    /**
     * 活动
     */
    RaffleActivity activity;

    public NoRaffleState(RaffleActivity activity) {
        this.activity = activity;
    }


    @Override
    public void deductMoney() {
        System.out.println("扣除积分50");
        activity.setState(activity.getCanRaffleState());
    }


    @Override
    public boolean raffle() {
        System.out.println("扣除了积分才能抽奖");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("不能发放奖品");
    }
}
